package com.apexedu.portal.util.umail.service;

import com.apexedu.portal.util.umail.constant.UMailConstant;
import com.apexedu.portal.util.umail.httpclient.HttpUtil;

import java.util.HashMap;
import java.util.Map;
/**
 * Created by luchen on 2015-12-23.
 */
public class UMailService  {
        public static String login(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/index.php?module=operate&action=";
            String action = "login";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String login(String username, String password, String domain, String init, String to)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("init", init);
            paramMap.put("to", to);
            return login(paramMap);
        }

        public static String addDomain(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "addDomain";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String addDomain(String username, String password, String domain, String company, String mblimit, String aliaslimit, String mbquota, String ndquota, String user_mbsize, String user_ndsize)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("company", company);
            paramMap.put("mblimit", mblimit);
            paramMap.put("aliaslimit", aliaslimit);
            paramMap.put("mbquota", mbquota);
            paramMap.put("ndquota", ndquota);
            paramMap.put("user_mbsize", user_mbsize);
            paramMap.put("user_ndsize", user_ndsize);
            return addDomain(paramMap);
        }

        public static String delDomain(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "delDomain";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String delDomain(String username, String password, String domain)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            return delDomain(paramMap);
        }

        public static String addDomainAdmin(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "addDomainAdmin";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String addDomainAdmin(String username, String password, String domain, String account, String pwd)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("account", account);
            paramMap.put("pwd", pwd);
            return addDomainAdmin(paramMap);
        }

        public static String getMailbox(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "getMailbox";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String getMailbox(String username, String password, String domain, String disabled, String limit_send, String limit_recv, String recvsms, String limit_ip, String keyword)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("disabled", disabled);
            paramMap.put("limit_send", limit_send);
            paramMap.put("limit_recv", limit_recv);
            paramMap.put("recvsms", recvsms);
            paramMap.put("limit_ip", limit_ip);
            paramMap.put("keyword", keyword);
            return getMailbox(paramMap);
        }

        public static String addMailbox(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "addMailbox";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String addMailbox(String username, String password, String domain, String account, String pwd, String realname, String mbsize, String ndsize, String disabled, String limit_send, String limit_recv, String recvsms, String limit_ip)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("account", account);
            paramMap.put("pwd", pwd);
            paramMap.put("realname", realname);
            paramMap.put("mbsize", mbsize);
            paramMap.put("ndsize", ndsize);
            paramMap.put("disabled", disabled);
            paramMap.put("limit_send", limit_send);
            paramMap.put("limit_recv", limit_recv);
            paramMap.put("recvsms", recvsms);
            paramMap.put("limit_ip", limit_ip);
            return addMailbox(paramMap);
        }

        public static String modMailbox(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "modMailbox";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String modMailbox(String username, String password, String domain, String account, String pwd, String realname, String mbsize, String ndsize, String disabled, String limit_send, String limit_recv, String recvsms, String limit_ip)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("account", account);
            paramMap.put("pwd", pwd);
            paramMap.put("realname", realname);
            paramMap.put("mbsize", mbsize);
            paramMap.put("ndsize", ndsize);
            paramMap.put("disabled", disabled);
            paramMap.put("limit_send", limit_send);
            paramMap.put("limit_recv", limit_recv);
            paramMap.put("recvsms", recvsms);
            paramMap.put("limit_ip", limit_ip);
            return modMailbox(paramMap);
        }

        public static String delMailbox(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "delMailbox";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String delMailbox(String username, String password, String domain, String account)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("account", account);
            return delMailbox(paramMap);
        }

        public static String importMailbox(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "importMailbox";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String importMailbox(String username, String password, String domain, String mbsize, String ndsize, String data)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("mbsize", mbsize);
            paramMap.put("ndsize", ndsize);
            paramMap.put("data", data);
            return importMailbox(paramMap);
        }

        public static String getMail(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "getMail";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String getMail(String email, String password, String domain, String mailbox)
        {
            Map paramMap = new HashMap();
            paramMap.put("email", email);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("mailbox", mailbox);
            return getMail(paramMap);
        }

        public static String readMail(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "readMail";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String readMail(String email, String password, String mailbox, String msgno)
        {
            Map paramMap = new HashMap();
            paramMap.put("email", email);
            paramMap.put("password", password);
            paramMap.put("mailbox", mailbox);
            paramMap.put("msgno", msgno);
            return readMail(paramMap);
        }

        public static String sendMail(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "sendMail";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String sendMail(String email, String password, String to, String cc, String bcc, String subject, String body)
        {
            Map paramMap = new HashMap();
            paramMap.put("email", email);
            paramMap.put("password", password);
            paramMap.put("to", to);
            paramMap.put("cc", cc);
            paramMap.put("bcc", bcc);
            paramMap.put("subject", subject);
            paramMap.put("body", body);
            return sendMail(paramMap);
        }

        public static String forwardMail(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "forwardMail";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String forwardMail(String email, String password, String to, String msgno, String mailbox, String cc, String bcc, String subject, String body)
        {
            Map paramMap = new HashMap();
            paramMap.put("email", email);
            paramMap.put("password", password);
            paramMap.put("to", to);
            paramMap.put("msgno", msgno);
            paramMap.put("mailbox", mailbox);
            paramMap.put("cc", cc);
            paramMap.put("bcc", bcc);
            paramMap.put("subject", subject);
            paramMap.put("body", body);
            return forwardMail(paramMap);
        }

        public static String getDept(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "getDept";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String getDept(String username, String password, String domain)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            return getDept(paramMap);
        }

        public static String addDept(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "addDept";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String addDept(String username, String password, String domain, String deptname, String pid, String tel, String fax, String linkman, String manager, String email, String address)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("deptname", deptname);
            paramMap.put("pid", pid);
            paramMap.put("tel", tel);
            paramMap.put("fax", fax);
            paramMap.put("linkman", linkman);
            paramMap.put("manager", manager);
            paramMap.put("email", email);
            paramMap.put("address", address);
            return addDept(paramMap);
        }

        public static String modDept(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "modDept";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String modDept(String username, String password, String domain, String dept_id, String deptname, String pid, String tel, String fax, String linkman, String manager, String email, String address)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("dept_id", dept_id);
            paramMap.put("deptname", deptname);
            paramMap.put("pid", pid);
            paramMap.put("tel", tel);
            paramMap.put("fax", fax);
            paramMap.put("linkman", linkman);
            paramMap.put("manager", manager);
            paramMap.put("email", email);
            paramMap.put("address", address);
            return modDept(paramMap);
        }

        public static String delDept(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "delDept";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String delDept(String username, String password, String domain, String dept_id)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("dept_id", dept_id);
            return delDept(paramMap);
        }

        public static String getDeptMember(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "getDeptMember";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String getDeptMember(String username, String password, String domain, String dept_id)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("dept_id", dept_id);
            return getDeptMember(paramMap);
        }

        public static String addDeptMember(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "addDeptMember";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String addDeptMember(String username, String password, String domain, String dept_id, String user_id)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("dept_id", dept_id);
            paramMap.put("user_id", user_id);
            return addDeptMember(paramMap);
        }

        public static String delDeptMember(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "delDeptMember";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String delDeptMember(String username, String password, String domain, String dept_id, String user_id)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("dept_id", dept_id);
            paramMap.put("user_id", user_id);
            return delDeptMember(paramMap);
        }

        public static String getMaillist(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "getMaillist";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String getMaillist(String username, String password, String domain)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            return getMaillist(paramMap);
        }

        public static String addMaillist(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "addMaillist";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String addMaillist(String username, String password, String domain, String name, String address, String desc, String is_private)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("name", name);
            paramMap.put("address", address);
            paramMap.put("desc", desc);
            paramMap.put("is_private", is_private);
            return addMaillist(paramMap);
        }

        public static String modMaillist(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "modMaillist";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String modMaillist(String username, String password, String domain, String id, String name, String desc, String is_private)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("id", id);
            paramMap.put("name", name);
            paramMap.put("desc", desc);
            paramMap.put("is_private", is_private);
            return modMaillist(paramMap);
        }

        public static String delMaillist(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "delMaillist";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String delMaillist(String username, String password, String domain, String id)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("id", id);
            return delMaillist(paramMap);
        }

        public static String getMaillistMember(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "getMaillistMember";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String getMaillistMember(String username, String password, String domain, String id)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("id", id);
            return getMaillistMember(paramMap);
        }

        public static String addMaillistMember(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "addMaillistMember";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String addMaillistMember(String username, String password, String domain, String id, String address, String type)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("id", id);
            paramMap.put("address", address);
            paramMap.put("type", type);
            return addMaillistMember(paramMap);
        }

        public static String modMaillistMember(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "modMaillistMember";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String modMaillistMember(String username, String password, String domain, String id, String address, String type)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("id", id);
            paramMap.put("address", address);
            paramMap.put("type", type);
            return modMaillistMember(paramMap);
        }

        public static String delMaillistMember(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "delMaillistMember";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String delMaillistMember(String username, String password, String domain, String id, String mid)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("id", id);
            paramMap.put("mid", mid);
            return delMaillistMember(paramMap);
        }

        public static String getMailAlias(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "getMailAlias";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String getMailAlias(String username, String password, String domain)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            return getMailAlias(paramMap);
        }

        public static String addMailAlias(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "addMailAlias";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String addMailAlias(String username, String password, String domain, String aliasname, String realname, String disabled)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("aliasname", aliasname);
            paramMap.put("realname", realname);
            paramMap.put("disabled", disabled);
            return addMailAlias(paramMap);
        }

        public static String modMailAlias(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "modMailAlias";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String modMailAlias(String username, String password, String domain, String alias_id, String realname, String disabled)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("alias_id", alias_id);
            paramMap.put("realname", realname);
            paramMap.put("disabled", disabled);
            return modMailAlias(paramMap);
        }

        public static String delMailAlias(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "delMailAlias";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String delMailAlias(String username, String password, String domain, String alias_id)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("alias_id", alias_id);
            return delMailAlias(paramMap);
        }

        public static String getPopmail(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "getPopmail";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String getPopmail(String username, String password, String domain, String email)
        {
            Map paramMap = new HashMap();
            paramMap.put("username", username);
            paramMap.put("password", password);
            paramMap.put("domain", domain);
            paramMap.put("email", email);
            return getPopmail(paramMap);
        }

        public static String addPopmail(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "addPopmail";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String addPopmail(String email, String password, String mailbox, String server, String pwd, String keepmail, String disabled)
        {
            Map paramMap = new HashMap();
            paramMap.put("email", email);
            paramMap.put("password", password);
            paramMap.put("mailbox", mailbox);
            paramMap.put("server", server);
            paramMap.put("pwd", pwd);
            paramMap.put("keepmail", keepmail);
            paramMap.put("disabled", disabled);
            return addPopmail(paramMap);
        }

        public static String modPopmail(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "modPopmail";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String modPopmail(String email, String password, String popid, String server, String pwd, String keepmail, String disabled)
        {
            Map paramMap = new HashMap();
            paramMap.put("email", email);
            paramMap.put("password", password);
            paramMap.put("popid", popid);
            paramMap.put("server", server);
            paramMap.put("pwd", pwd);
            paramMap.put("keepmail", keepmail);
            paramMap.put("disabled", disabled);
            return modPopmail(paramMap);
        }

        public static String delPopmail(Map<String, String> paramMap)
        {
            String result = null;
            String uri = UMailConstant.MAILAPP_INDEXPAGE + "webmail/api.php?do=";
            String action = "delPopmail";
            String url = uri + action;
            result = HttpUtil.postForString(url, paramMap);
            return result;
        }

        public static String delPopmail(String email, String password, String popid)
        {
            Map paramMap = new HashMap();
            paramMap.put("email", email);
            paramMap.put("password", password);
            paramMap.put("popid", popid);
            return delPopmail(paramMap);
        }
}
